All Questions
2 questions
0votes
2answers
1kviews
Union find using unordered map and templates in C++
I tried to implement union find (disjoint set data structure) algorithm in C++. There I used unordered_map data structure. Is there a better way of doing this using any other data structure. While ...
8votes
3answers
2kviews
Extended Euclidean Algorithm in modern and readable C++
In Python the Extended Euclidean Algorithm (egcd) could be written as follows: ...